#include "mainwindow.h"
#include "fancytabwidget.h"
#include <utils/manhattanstyle.h>  //"manhattanstyle.h"
//#include <utils/minisplitter.h>  //"minisplitter.h"

MainWindow::MainWindow(QWidget *parent, Qt::WFlags flags)
	: QMainWindow(parent, flags)
{
	using namespace Core;
	using namespace Core::Internal;

	ui.setupUi(this);
	qApp->setStyle(new ManhattanStyle(QApplication::style()->objectName()));

	FancyTabWidget* ptab = new FancyTabWidget(this);
	setCentralWidget(ptab);


 //	MiniSplitter* splitter = new MiniSplitter();
 //	splitter->setOrientation(Qt::Vertical);
	//splitter->insertWidget(0, new QWidget(this));
 //	splitter->insertWidget(1, new QWidget(this));
	//splitter->setStretchFactor(0, 3);
	//splitter->setStretchFactor(1, 0);
 //
 //	MiniSplitter* m_splitter = new MiniSplitter();
 //	m_splitter->insertWidget(0, new QWidget(this));
	//m_splitter->insertWidget(1, splitter);
	//m_splitter->setStretchFactor(0, 0);
	//m_splitter->setStretchFactor(1, 1);
	ptab->insertTab(0, new QWidget(this),QIcon("images/mode_Edit.png"),"Very~" );
	ptab->setTabEnabled(0, true);

	setDockNestingEnabled(true);
	setCorner(Qt::BottomLeftCorner, Qt::LeftDockWidgetArea);
	setCorner(Qt::BottomRightCorner, Qt::BottomDockWidgetArea);
	statusBar()->setProperty("p_styled", true);
	setAcceptDrops(true);

	statusBar()->hide();
}

MainWindow::~MainWindow()
{

}
